#include "goal.h"

using namespace spsu_art;

goal::goal() {
    //get an instance of the autopilot singleton
    helecopter = autopilot::get_instance();

    //the goal is inactive until activate is called
    status = G_inactive;
} //end constructor

goal::get_status() {
    return status;
} //end get_status

goal::set_status(g_status status) {
    this.status =  status;
} //end set_status

goal::is_complete() {
    return (status == G_complete)?true:false;
} //end is_complete

goal::has_failed() {
    return (status == G_failed)?true:false;
} //end has_failed

goal::is_active() {
    return (status == G_active)?true:false;
} //end is_active

goal::is_inactive() {
    return (status == G_inactive)?true:false;
} //end is_inactive

goal::is_composite() {
    return false;
} //end is_composite
